package com.joplus.housekeeper.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bigkoo.convenientbanner.holder.Holder;
import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * Created by ccm on 2016/9/28 15:07
 */


public class BannerWineHold implements Holder<String> {

    private ImageView imageView;

    @Override
    public View createView(Context context) {
        imageView = new ImageView(context);
        imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
        return imageView;
    }


    @Override
    public void UpdateUI(Context context, int position, String i) {
        ImageLoader.getInstance().displayImage(i, imageView);
    }


}
